#pragma config(Sensor, dgtl1,  right,          sensorSONAR_inch)
#pragma config(Sensor, dgtl3,  left,           sensorSONAR_inch)
#pragma config(Sensor, dgtl10, button,         sensorTouch)
#pragma config(Motor,  port2,           m2,            tmotorServoContinuousRotation, openLoop)
#pragma config(Motor,  port3,           m3,            tmotorServoContinuousRotation, openLoop, reversed)
#pragma config(Motor,  port4,           m4,            tmotorServoContinuousRotation, openLoop, reversed)
#pragma config(Motor,  port5,           m5,            tmotorServoStandard, openLoop)
//*!!Code automatically generated by 'ROBOTC' configuration wizard               !!*//

void stop(){
motor[m2]=0;
motor[m3]=0;
motor[m4]=0;
motor[m5]=0;
}

task main(){
 while (1==1) {
if ((SensorValue(right) >12) || (SensorValue(left) >12) || (SensorValue(button) == 1)){
motor[m2]=0;
motor[m3]=0;
motor[m4]=0;
motor[m5]=0;
}

/*motor[m2]=45;
motor[m3]=45;
motor[m4]=38;
motor[m5]=38;*/
}
}
